﻿<?php
// 本类由系统自动生成，仅供测试用途
class IndexAction extends BaseAction{
    public function index() {
		
		
		//标题
		$web_title = $this->webInfo['web_title'];
		//关键词
		$web_keyword = $this->webInfo['web_key'];
		//描述
		$web_desc =  $this->webInfo['web_desc'];
		
		//输出变量到模板
		$this->assign('web_title',$web_title);
		$this->assign('web_key',$web_keyword);
		$this->assign('web_desc',$web_desc);

		if( $this->webInfo['enable_cover'] == 1 ) //如果开启封面（引导页）
		{
			$is_home = (int)$_GET['is_home'];
			if( $is_home == 1 )
				$tpl = C('TPL_PATH').'2.html';
			else
	    		$tpl = C('TPL_PATH').'1.html';
		}
		else	//未开启引导页
		{
			$tpl = C('TPL_PATH').'2.html';
		}
		$this->display($tpl);
    }
    

	
}
?>